<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>Document</title>
        <style>
            body {
                display: flex;
                align-items: flex-start;
                justify-content: center;
                gap: 2rem;
                padding: 2rem;
            }

            .preferably-square {
                width: 300px;
                aspect-ratio: auto 2 / 1;
            }

            div {
                background-image: linear-gradient(90deg, #ec4899, #ef4444, #f59e0b);
            }
        </style>
    </head>
    <body>
        <div class="preferably-square"></div>
        <img
            class="preferably-square"
            src="https://source.unsplash.com/random/800x600?iran"
            alt=""
        />
    </body>
</html>
